package com.myosw.entity;

import java.util.List;

import com.myosw.pojo.POJO;



public class PageShow 
{
	 private List<? extends POJO> list;
	 private int page;
	 private int size;
	 private int totalpage;
	 private long total;
	 public PageShow(List<? extends POJO> list,int page, int size, int total) 
	 {
		this.list= list;
		this.page= page;
		this.total =total;
		this.size = size<1 ?Integer.MAX_VALUE:size;
		this.totalpage = total%size==0?total/size:(total/size+1);
	}
	 public PageShow() {
		
	}
	public List<? extends POJO> getList() {
		return list;
	}
	public void setList(List<? extends POJO> list) {
		this.list = list;
	}
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public int getTotalpage() {
		return totalpage;
	}
	public void setTotalpage(int totalpage) {
		this.totalpage = totalpage;
	}
	public long getTotal() {
		return total;
	}
	public void setTotal(long total) {
		this.total = total;
	}
	 

}
